import pkgutil

default_app_config = 'dimension.apps.DimensionConfig'


def autodiscover_providers():
    for loader, pkg_name, is_pkg in pkgutil.iter_modules(['dimension/providers']):
        try:
            __import__('dimension.providers.' + pkg_name)
        except ImportError:
            pass


def autodiscover_configs():
    __import__('dimension.configs')


autodiscover_configs()
autodiscover_providers()
